// pages/personCenter/personCenter.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    userInfo:null
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    wx.getUserInfo({
      success: function (res) {
        that.setData(res.userInfo);
        console.log(res.userInfo);
      }
    })
  },
  goToOrder:function(e){
    wx.switchTab({
      url: '/pages/orderStatus/orderStatus',
    })
  },
  goToAddress:function(e){
    wx.navigateTo({
      url: '/pages/chooseAddress/chooseAddress',
    })
  }



 
})